package feizhou.untils.tools.testData;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * 测试
 *
 * @作者 <a href="920786312@qq.com">周飞</a>
 * @时间 2023-09-15 18:48:16
 */

@Data
@ToString
@AllArgsConstructor
public class UserEntity {
    private Integer id;
    private String name;
    private Integer sex;


    /**
     * 构建测试数据
     *
     * @param
     * @return java.util.List<fei.zhou.java_untils.tools.testData.UserEntity>
     * @author <a href="920786312@qq.com">周飞</a>
     * @since 2023/11/1 15:48
     */
    public static List<UserEntity> buildTestData() {
        List<UserEntity> list = new ArrayList<>();
        for (int i = 1; i < 10; i++) {
            list.add(new UserEntity(i, "张" + i, 1));
        }
        return list;
    }

}
